#include <iostream>
using namespace std;
int main ()
{
    int a;
    int b=0;




    cout<<"ingrese un numero"<<endl;

    cin>>a;

    while (a!= 0)
    {

        b=b+a;
        cin>>a;


        cout<<b;

        cin>>a;

    }

    cout<<b;


    return 1;



}
